package threaddemo12;



/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-06
 * Time: 23:27
 */
public class TestDemo {
    public static void main(String[] args) {
    //总的票
    SellTicket s1=new SellTicket();
    //三个窗口卖一百张票
    Thread t1=new Thread(s1);
        t1.setName("窗口一");
    Thread t2=new Thread(s1);
        t2.setName("窗口二");
    Thread t3=new Thread(s1);
        t3.setName("窗口三");
        
        t1.start();
        t2.start();
        t3.start();
    }
}